<?php
	header('Content-Type: text/html; charset=UTF-8');
		
	define('MOD_DEF','index');

	define('MOD_PATH', realpath('./modules/'));
	define('INC_PATH', realpath('./includes/'));
	define('TPL_PATH', realpath('./templates/'));
	define('LIB_PATH', realpath('./libs/'));
	define('IMG_PATH', realpath('./images/'));

	define('SMARTY_DIR', INC_PATH.'/smarty/');
	define('TEMPLATES_PATH',TPL_PATH.'/templates/');
	define('TEMPLATES_C_PATH',TPL_PATH.'/templates_c/');
	define('CONFIGS_PATH',TPL_PATH.'/configs/');
	define('CACHE_PATH',TPL_PATH.'/cache/');

	// Modulos importados
	require_once(SMARTY_DIR.'Smarty.class.php');    // Sistema de plantillas
	require_once(SMARTY_DIR.'Config_File.class.php');
        
	require_once(LIB_PATH.'/libDB.php');
	require_once(LIB_PATH.'/libPag.php');
	require_once(INC_PATH.'/functions.php');
		
	// Config variables
	$conf['bd'] = array (
		'host'=>'localhost',
		'port'=>'8889',
		'user'=>'root',
		'pass'=>'root',
		'db'=>'rwa',
	);

	$conf['base_path'] = '/revealerwebaccess/';
	$conf['morgue_path'] = '/tmp/media/morgue/';
	$conf['lang']='es';        
        
	$title = 'Revealer Web Access';

?>
